import service from '../utils/request'

export function login(data) {
  return service({
    url: 'user/login',
    method: 'post',
    data
  })
}

export function getUserId (params) {
  return service({
    url: `/user/name/${params}`,
    method: 'get'
  })
}